QMenu {
    background: rgba(255, 255, 255, 0.98);
    padding: 2px;
    /* 使用多层边框模拟阴影效果 */
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-family: 'Microsoft YaHei Light', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    border-radius: 6px;
    margin: 4px;
}

QMenu::item {
    padding: 10px 20px;
    margin: 2px 0;
    color: #2c3e50;
    background: transparent;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

QMenu::item:hover {
    background: #691BFD;
    color: #ffffff;
    /* 移除不支持的box-shadow和transform属性 */
}

QMenu::item:selected {
    background: #691BFD;
    color: #ffffff;
    /* 使用边框代替box-shadow */
    border: 1px solid rgba(0, 120, 255, 0.2);
}

QMenu::separator {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 8px 12px;
    border: none;
}

/* PyQt6不支持CSS动画，移除keyframes定义 */